<?php
    include('./library/conn.php');

    $phone = $_REQUEST['phone'];

    $password = $_REQUEST['password'];



    $sql = "insert into users (phone,password,uname,birthday) values ('$phone','$password','','')";
    // insert into 表(,,,,,) values (,,,,,)
    $res = $mysqli->query($sql);

    $mysqli->close();

    if($res){
        // echo '<script>alert("注册成功");</script>';
        echo '<script>location.href="../src/html/loading.html?type=3"</script>';
    }
?>